<script setup lang="ts">
import { ref, onMounted } from 'vue';
const el =ref<HTMLInputElement | null>(null)
onMounted(() => {
  // 自动聚焦
  el.value?.focus()
})
</script>

<template>
  <div class="app-page">
    <div>我是app</div>
    <input type="text" ref="el">
  </div>
</template>

<style lang="scss" scoped></style>
